﻿@using FCTC_Web.Utilities
@using DAL
@using FCTC_Web.Models
@model FCTC_Web.Models.Shop
@{
    ViewBag.Title = "商家";
}
  @Combres.HtmlExtensions.CombresLink("backjs")
 @Html.ValidationSummary(true)
    <fieldset>
        <legend>商家信息</legend>

        <table width="90%" style="background-color:#f6fdfd; margin-top:20px;"  align="center">
        <tr>
            <td style="width:150px; text-align:right;">
                <span class="headtitle">@Html.LabelFor(model => model.FullName)：</span>
            </td>
            <td>
               <span class="ie6">@Html.EditorFor(model => model.FullName)</span>
               @Html.ValidationMessageFor(model => model.FullName)
            </td>
            <td style="width:150px; text-align:right;">
                <span class="headtitle">@Html.LabelFor(model => model.ShopType)：</span>
            </td>
            <td>
                <span class="headtitles">@Html.DropDownListFor(model => model.ShopType, new SelectList(new List<string>{  
                      "二手车店", 
                       "4S车店", 
                       "汽车美容店",
                       "修理厂",
                       "协会组织",
                       "其他"
                        }))</span>
            @Html.ValidationMessageFor(model => model.ShopType)
            </td>
        </tr>
        <tr>
            <td style="width:150px; text-align:right;">
                <span class="headtitle">@Html.LabelFor(model => model.TrustLevel)：</span>
            </td>
            <td>
                <span class="headtitles">@Html.DropDownListFor(model => model.TrustLevel, new SelectList(new List<string>{  
                      "一级", 
                      "二级", 
                      "三级",
                      "四级"
                        }), "--请选择--")</span>
                 @Html.ValidationMessageFor(model => model.TrustLevel)
            </td>
            <td style="width:150px; text-align:right;">
                <span class="headtitle">@Html.LabelFor(model => model.VehicleSaled)：</span>
            </td>
            <td>
                <span class="ie6">@Html.EditorFor(model => model.VehicleSaled)</span>
                @Html.ValidationMessageFor(model => model.VehicleSaled)<span>(台)</span>
            </td>
        </tr>
        <tr>
            <td style="width:150px; text-align:right;">
                <span class="headtitle">@Html.LabelFor(model => model.ContactNumber)：</span>
            </td>
            <td>
                <span class="ie6">@Html.EditorFor(model => model.ContactNumber)</span>
                 @Html.ValidationMessageFor(model => model.ContactNumber)
            </td>
            <td style="width:150px; text-align:right;">
                <span class="headtitle">@Html.LabelFor(model => model.Address)：</span>
            </td>
            <td>
                <span class="ie6">@Html.EditorFor(model => model.Address)</span>
                @Html.ValidationMessageFor(model => model.Address)
            </td>
        </tr>
        <tr>
            <td style="width:150px; text-align:right;">
                <span class="headtitle">@Html.LabelFor(model => model.Description)：</span>
            </td>
            <td>
                <span class="txt">@Html.TextAreaFor(model => model.Description)</span>
                @Html.ValidationMessageFor(model => model.Description)
            </td>
            <td style="width:150px; text-align:right;">
                <span class="headtitle">@Html.LabelFor(model => model.MainPageUrl)：</span>
            </td>
            <td>
                <span class="ie6">@Html.EditorFor(model => model.MainPageUrl)</span>
                @Html.ValidationMessageFor(model => model.MainPageUrl)<span>必须包含http://</span>
            </td>
        </tr>
        </table>  
    </fieldset>
@Html.Partial(@"~\views\shared\controls\otherschange.cshtml", Model)
<p>
    <input type="submit" value="保存" />
</p>
@Html.ActionLink("回到列表", "Index")
